<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
    <style>
        .bounce-enter-active{
            animation:bounce-in 1s;
        }
        .bounce-leave-active{
            animation:bounce-out 3s reverse;
        }
        @keyframes bounce-in{
            0%{
                opacity:0;
                transform:scale(0);
            }
            50%{
                
                transform:scale(1.5);
            }   
            100%{
                transform:scale(1);
            }
        }
    </style>
</head>
<body>
    <div id="app">
        <button @click="show=!show">点击</button>
        <transition name="bounce">
            <p v-if="show">
                学习起来不知道WWWWssjksadjfksjkJKJkfjk335345.,
            </p>
        </transition>
        <h3></h3>
    </div>
</body>
<script>
    var vm=new Vue({
        el:'#app',
        data:{
            show:false
        }
    })
</script>
</html>